package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.OrdersPageQueryDTO;
import com.sky.entity.Orders;
import com.sky.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;



@Mapper
public interface OrdersMapper {

    Page<OrderVO> page(OrdersPageQueryDTO ordersPageQueryDTO);

    @Select("select count(*) from orders where status = #{status}")
    Integer count(Integer toBeConfirmed);

    void update(Orders orders);

    void cancellation(Orders build);
    /**
     * 订单详情
     */
    @Select("select * from orders where id = #{id}")
    OrderVO detail(Orders build);


}
